package forum.client.ui;

import java.awt.Color;
import javax.swing.JPanel;

/**
 * @author Tomer Heber
 *
 */
public class ForumTreeRootPanel extends JPanel {


	private static final long serialVersionUID = -6952266542697445089L;
	//private ForumTree m_forumTree;
	//private JButton m_addMessageButton;
	/*private JButton demoteUsers;
	private JButton promoteUsers;
	private UsersList dialog;*/
	public ForumTreeRootPanel(ForumTree forumTree) {
		super();
		/*dialog = new UsersList(new javax.swing.JFrame(), true);
		dialog.addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosing(java.awt.event.WindowEvent e) {
                dialog.setVisible(false);
            }
        });*/
		//this.setPreferredSize(new Dimension(400,30));
		this.setBackground(Color.WHITE);

		/*m_addMessageButton = new JButton("Add New Message");
		m_addMessageButton.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				m_forumTree.addNewMessage(m_addMessageButton);
			}
		});*/
		/*demoteUsers=new JButton("Demote Moderators");
		demoteUsers.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				java.awt.EventQueue.invokeLater(new Runnable() {
		            public void run() {
		            	dialog.setListItems(false);
		                dialog.setVisible(true);
		            }
		        });
			}
		});
		promoteUsers=new JButton("Promote Users");
		promoteUsers.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				java.awt.EventQueue.invokeLater(new Runnable() {
		            public void run() {
		            	dialog.setListItems(true);
		                dialog.setVisible(true);
		            }
		        });
			}
		});
		//this.add(m_addMessageButton);
		this.add(demoteUsers);
		this.add(promoteUsers);*/
		//m_forumTree = forumTree;
	}

}
